package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.business.service.family.LoanLargeH5StatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.LoanLargeH5StatSearchRequest;
import com.tuanzi.loan.vo.response.family.LoanLargeH5StatSearchResponse;
import org.springframework.data.domain.Page;

public class LoanLargeH5StatLazyDataModel extends
        BaseLazyDataModel<LoanLargeH5StatSearchRequest, LoanLargeH5StatSearchResponse> {
    private LoanLargeH5StatService loanLargeH5StatService = SpringContextHolder.getBean(LoanLargeH5StatService.class);

    public LoanLargeH5StatLazyDataModel(LoanLargeH5StatSearchRequest request) {
        super(request);
    }

    @Override
    protected Page<LoanLargeH5StatSearchResponse> doLoad(PageSearcher<LoanLargeH5StatSearchRequest> pageSearcher) {
        return loanLargeH5StatService.list(pageSearcher);
    }
}
